package com.reremouse.rerebbs.web.mb;

import com.reremouse.rerebbs.dao.IBbsZoneDAO;
import com.reremouse.rerebbs.model.BbsZone;
import com.reremouse.util.SpringHelper;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@ManagedBean
@RequestScoped
public class ZoneList
        implements Serializable {
    List<BbsZone> zones = new ArrayList();
    IBbsZoneDAO bbsZoneDAO = (IBbsZoneDAO) SpringHelper.getSpringBean("BbsZoneDAO");

    public List<BbsZone> getZones() {
        return this.zones;
    }

    public void setZones(List<BbsZone> zones) {
        this.zones = zones;
    }

    @PostConstruct
    public void init() {
        this.zones = this.bbsZoneDAO.findAll(new int[0]);
    }
}



/* Location:           F:\jsp源码\蝙蝠论坛系统\rerebbs\WEB-INF\classes\

 * Qualified Name:     com.reremouse.rerebbs.web.mb.ZoneList

 * JD-Core Version:    0.7.0.1

 */